//提供首页相关API函数
import request from '@/util/request'

/**
 * 
 * @param {integer} limit -品牌个数
 * @returns Promise 
 */
export const findBrand = (limit = 6) => {
        return request('/home/brand', 'get', { limit })
    }
    /*
    获取广告区轮播图

    */
export const findBanner = () => {
        return request('/home/banner', 'get')
    }
    /*
       获取新鲜好物

       */
export const findNew = () => {
    return request('/home/new', 'get')
}
export const findHot = () => {
    return request('home/hot', 'get')
}
export const findGoods = () => {
    return request('home/goods', 'get')
}
export const findSpecial = () => {
    return request('home/special', 'get')
}